home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWStream / Sources / SLRanSin.cpp < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.8 KB  |  96 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLRanSin.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFound.hpp"
  11.  
  12. #ifndef FWODEXCE_H
  13. #include "FWODExce.h"
  14. #endif
  15.  
  16. #ifndef FWPRIMEM_H
  17. #include "FWPriMem.h"
  18. #endif
  19.  
  20. #ifndef FWPRIDEB_H
  21. #include "FWPriDeb.h"
  22. #endif
  23.  
  24. #define VARIABLE_MACROS
  25. #define FW_ORandomAccessSink_Class_Source
  26. #include "SLRanSin.xih"
  27.  
  28. #ifdef FW_BUILD_MAC
  29. #pragma segment FWStream
  30. #endif
  31.  
  32. //----------------------------------------------------------------------------------------
  33. // FW_ORandomAccessSinkGetLength
  34. //----------------------------------------------------------------------------------------
  35.  
  36. SOM_Scope long  SOMLINK FW_ORandomAccessSink__GetLength(FW_ORandomAccessSink *somSelf, Environment *ev)
  37. {
  38. FW_UNUSED(somSelf);
  39. FW_UNUSED(ev);
  40.     FW_SUBCLASS_RESPONSIBILITY("FW_ORandomAccessSinkGetLength");
  41.     return 0;
  42. }
  43.  
  44.  
  45. //----------------------------------------------------------------------------------------
  46. // FW_ORandomAccessSinkSetLength
  47. //----------------------------------------------------------------------------------------
  48.  
  49. SOM_Scope void  SOMLINK FW_ORandomAccessSink__SetLength(FW_ORandomAccessSink *somSelf, Environment *ev,
  50.         long length)
  51. {
  52. FW_UNUSED(somSelf);
  53. FW_UNUSED(ev);
  54. FW_UNUSED(length);
  55.     FW_SUBCLASS_RESPONSIBILITY("FW_ORandomAccessSinkSetLength");
  56. }
  57.  
  58.  
  59. //----------------------------------------------------------------------------------------
  60. // FW_ORandomAccessSinkGetPosition
  61. //----------------------------------------------------------------------------------------
  62.  
  63. SOM_Scope long  SOMLINK FW_ORandomAccessSink__GetPosition(FW_ORandomAccessSink *somSelf, Environment *ev)
  64. {
  65. FW_UNUSED(somSelf);
  66. FW_UNUSED(ev);
  67.     FW_SUBCLASS_RESPONSIBILITY("FW_ORandomAccessSinkGetPosition");
  68.     return 0;
  69. }
  70.  
  71.  
  72. //----------------------------------------------------------------------------------------
  73. // FW_ORandomAccessSinkSetPosition
  74. //----------------------------------------------------------------------------------------
  75.  
  76. SOM_Scope void  SOMLINK FW_ORandomAccessSink__SetPosition(FW_ORandomAccessSink *somSelf, Environment *ev,
  77.         long position)
  78. {
  79. FW_UNUSED(somSelf);
  80. FW_UNUSED(ev);
  81. FW_UNUSED(position);
  82.     FW_SUBCLASS_RESPONSIBILITY("FW_ORandomAccessSinkSetPosition");
  83. }
  84.  
  85.  
  86. //----------------------------------------------------------------------------------------
  87. // FW_ORandomAccessSinkGetReadableBytes
  88. //----------------------------------------------------------------------------------------
  89.  
  90. SOM_Scope long  SOMLINK FW_ORandomAccessSink__GetReadableBytes(FW_ORandomAccessSink *somSelf, Environment *ev)
  91. {
  92.     return somSelf->GetLength(ev) - somSelf->GetPosition(ev);
  93. }
  94.  
  95.  
  96.